const env = process.env.UMI_ENV;

let host = '';
let hostRes = '';
if(env==='test'){
  host = '';
  hostRes = 'http://localhost:5000'
}else if(env ==='pre'){
  host = '';
}else if(env==='prd') {
  host = '';
}

export const HOST = host;
export const HOST_RES = hostRes;
export const LOGIN = `${HOST}/api/open/login`;
export const UPLOAD = `${HOST}/api/user/upload`;

export const FORGET_SEND_VERTIFY_CODE = HOST+'/api/open/sendForgetVertifyCode';
export const FORGET_PASSWORD = HOST+'/api/open/forgetPassword';

export const REGISTER = HOST+'/api/open/register';

export const GET_USER_INFO = `${HOST}/api/user/getUserInfo`;
export const UPDATE_PROFILE = `${HOST}/api/user/updateProfile`;
export const UPDATE_PASSWORD = `${HOST}/api/user/updatePassword`;

export const GET_USER_LIST = `${HOST}/api/user/getUserList`;

export const LOG_LIST=HOST+'/api/admin/getLogList';

// system setting
export const SYS_SETTING_GET= HOST+'/api/admin/getSysSetting';
export const SYS_SETTING_UPDATE= HOST+'/api/admin/updateSysSetting';
